projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1feb672
)
quartz: also update window position on windowDidResize
author
Kristian Rietveld
<kris@lanedo.com>
Sat, 8 Oct 2011 09:47:11 +0000
(11:47 +0200)
committer
Kristian Rietveld
<kris@lanedo.com>
Sat, 8 Oct 2011 09:47:11 +0000
(11:47 +0200)
When a window goes fullscreen, the resize also changes its size.
gdk/quartz/GdkQuartzNSWindow.c
patch
|
blob
|
history
diff --git
a/gdk/quartz/GdkQuartzNSWindow.c
b/gdk/quartz/GdkQuartzNSWindow.c
index ee21797383957ddf3a888b0f400c8fd098e4ce27..260323da45d919d4ea7e7f5c040e94ded2842a25 100644
(file)
--- a/
gdk/quartz/GdkQuartzNSWindow.c
+++ b/
gdk/quartz/GdkQuartzNSWindow.c
@@
-165,6
+165,11
@@
window->width = content_rect.size.width;
window->height = content_rect.size.height;
+ /* Certain resize operations (e.g. going fullscreen), also move the
+ * origin of the window.
+ */
+ _gdk_quartz_window_update_position (window);
+
[[self contentView] setFrame:NSMakeRect (0, 0, window->width, window->height)];
_gdk_window_update_size (window);